public class Date {
    public int year ;
    public int month ;
    public int day ;


    public Date(){
        System.out.println("不带参数的构造方法……");
    }

    public Date(int year,int month,int day){
        this.year = year;
        this.month = month;
        this.day = day;
        System.out.println("带3个参数的构造方法……");
    }

    public void setDate(Date this,int year,int month,int day){
        this.year = year;
        this.month = month;
        this.day = day;
    }

    public void printDate(Date this){
        System.out.println(year+" 年"+month+" 月"+day+" 日");
    }


    public static void main(String[] args) {
        Date date = new Date(1999,9,21);
        date.printDate();

        //Date date2 = new Date();
    }










//    public static void main1(String[] args) {
//        Date date = new Date();
//        date.setDate(1999,9,21);
//        date.printDate();
//
//        System.out.println("===============");
//
//        Date date2 = new Date();
//        date2.setDate(1949,10,1);
//        date2.printDate();
//    }
}
